import 'package:json_annotation/json_annotation.dart';
@JsonSerializable()

class User {
  String name;
  String email;
  String age;
  String phone;
  String token;
  User({this.name, this.email, this.age, this.phone,this.token});

  User.fromJson(Map<String, dynamic> json) {
    name = json['name'];
    email = json['email'];
    age = json['age'];
    phone = json['phone'];
    token = json['token'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['name'] = this.name;
    data['email'] = this.email;
    data['age'] = this.age;
    data['phone'] = this.phone;
    data['token'] = this.token;
    return data;
  }
}

  //  String group='{"name":"John Smith","email": "john@example.com",},{"name": "Nancy","email": "Nancy@example.com","age":"30","phone":"15160023363"}]}';